package com.jpx.jxcupms.service.impl;

import com.jpx.jxcupms.dto.TUserDto;
import com.jpx.jxcupms.entity.TRole;
import com.jpx.jxcupms.entity.TUser;
import com.jpx.jxcupms.mapper.TUserMapper;
import com.jpx.jxcupms.service.ITUserService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mht
 * @since 2020-02-22
 */
@Service
public class TUserServiceImpl extends ServiceImpl<TUserMapper, TUser> implements ITUserService {

    @Override
    public List<TRole> getRoleByUserid(Integer id) {
        return this.baseMapper.getRoleByUserid(id);
    }

    @Override
    public List<TUserDto> userRoleList(TUser tUser) {
        return this.baseMapper.userRoleList(tUser);
    }
}
